<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib  prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib  prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib  prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="redis" uri="http://www.shopjsp.com/redisTag/functions" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="srcPath" value="${redis:getSysConfig('sysFileVisitRoot_back')}"/>
<c:set var="basePath" value="${redis:getSysConfig('base_path_back')}"/>
<c:set var="uploadPath" value="${redis:getSysConfig('uploadFileVisitRoot')}"/>
<c:set var="htmlPath" value="${redis:getSysConfig('in_path_html')}"/>
<c:set var="defaultImg" value="${redis:getSysConfig('website_default_img')}"/>
	<script type="text/javascript">
		//提交
    	function submitForm(){
			$("#form1").submit();
    	}
    </script>
	  <div id="addOrEditWin">
	   <form id="form1"  method="post" action="">
	   	<input type="hidden" id="orderDetailId" name="orderDetailId" >
	  	<table align="center" class="addOrEditTable" width="600px;" >
	  		<tr><td class="toright_td" width="150px">订单号:&nbsp;&nbsp;</td>
	   			<td>&nbsp;&nbsp;
	   				<select name="ordersList.ordersId">
	   					<option>---请选择订单---</option>
	   					<c:forEach items="${session.ordersLists}">
		   					<option id="<c:out value='ordersId'/>" value="<c:out value='ordersId'/>"><c:out value="ordersNo"/></option>
	   					</c:forEach>
	   				</select>
		  		</td>
		  	</tr>
	   		<tr><td class="toright_td" width="150px">商品:&nbsp;&nbsp;</td>
	   			<td>&nbsp;&nbsp;
	   				<select name="ordersList.productId">
						<option>---请选择商品---</option>
	   					<c:forEach items="${session.productInfoList}">
		   					<option id="p_<c:out value='productId'/>" value="<c:out value='productId'/>"><c:out value="productName"/></option>
	   					</c:forEach>
	   				</select>
	   			</td></tr>
	   		<tr><td class="toright_td" width="150px">数量:&nbsp;&nbsp;</td><td>&nbsp;&nbsp;<input id="count" type="text" name="ordersList.count" class="{validate:{required:true,maxlength:[20]}}" /></td></tr>
	   	</table>
		<div class="editButton"  data-options="region:'south',border:false" >
			<a id="btnSave" class="easyui-linkbutton" icon="icon-save" onclick="$('#form1').submit()" href="javascript:;">保存</a>
			<a id="btnCancel" class="easyui-linkbutton" icon="icon-cancel" onclick="closeWin()" href="javascript:;">取消</a>
		</div>
	</form>
</div>
